package com.test.file;

import net.coobird.thumbnailator.Thumbnails;

import java.io.ByteArrayOutputStream;
import java.io.File;

public class TransPicDemo {

    public static void main(String[] args) throws Exception{

        Thumbnails.of("d:\\license.jpg").scale(1f).outputQuality(0.25f).toFile(new File("d:\\license_1.jpg"));

    }
}
